<template>
	<view id="iptTxt">
		<view class="HA">
			<view class="top">
				{{name}}
			</view>
			<mp-html :content="html" />
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				name: '',
				html: ''
			}
		},

		onLoad(option) {
			var item = JSON.parse(option.item);
			this.id = item
			this.slect()
			// this.onliad()
		},
		methods: {

			slect() {

				let data = {
					id: this.id
				}
				this.$http.getidselect(data)
					.then(res => {
						console.log(res.data[0].name)
						this.name = res.data[0].name
						this.html = res.data[0].content
					})

			}


		},

	}
</script>


<style>
	.top {
		margin-bottom: 20px;
		font-size: 26px;
		color: #000000;
	}

	.HA {
		margin: 20px;
	}
</style>
